package com.ynding.springboot.model.domain;

import com.ynding.springboot.common.annotations.IntegerValidator;
import com.ynding.springboot.model.enums.AlertTypeEnum;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author Administrator
 */
@Data
@Entity
public class Ingredient {

    @Id
    private String id;

    private String name;

    @IntegerValidator(value = {1, 2}, message = "错误入参")
    private Integer flag;

    private Type type;

    /**
     * 类型
     */
    public enum Type {
        WRAP, PROTEIN, VEGGIES, CHEESE, SAUCE
    }
}
